import { Component} from "angular2/core";
import { bootstrap } from "angular2/platform/browser";

declare var Car: any;

@Component({
    selector: "my-app",
    directives: [],
    templateUrl: "app/app.html"
})

class App {
    carObj: any;
    runMsg: String;

    constructor() {
        this.carObj = new Car("Red");
        this.runMsg = this.carObj.run();
    }
}

bootstrap(App, []);